package com._119yn.host.gst200.database.dao;

import com._119yn.host.gst200.database.entity.HostSession;

import java.time.LocalDateTime;
import java.util.List;

public interface HostSessionDao {

    long insert(HostSession hostSession);

    long deleteByHostId(int hostId);

    long updateByHostId(HostSession hostSession);

    HostSession selectByHostId(int hostId);

    List<HostSession> selectAll();

    long truncate();

    long updateSilenceAndActiveTime(Integer silence, LocalDateTime activeTime);

    long updateStatusesAndActiveTime(Long status, Integer manualSta, Integer autoSta, Integer spraySta, Integer guardSta, LocalDateTime activeTime);

    List<HostSession> selectByOffline(Integer offline);

    boolean isAllHostSessionOffline();
}
